<template>
<div>
	<el-button @click='fnB1'>AChild1-22</el-button>
</div>
</template>
<script>
import { ref, provide } from 'vue'

export default {
	name: 'AChild1',
	components: {
	},
	setup (props, context) {
		const fnB1 = () => {
			console.log('AChild1', '子调父');
			context.emit('textclick', '999')
		};
		const fnB2 = (val) => {
			console.log('AChild1', 'fnB2', val);
		};
		return {
			fnB1,
			fnB2,
		}
	},
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>